Optimal. Leaf size=99 \[ -\frac {5 b x}{16}-\frac {a \cosh (c+d x)}{d}+\frac {a \cosh ^3(c+d x)}{3 d}+\frac {5 b \cosh (c+d x) \sinh (c+d x)}{16 d}-\frac {5 b \cosh (c+d x) \sinh ^3(c+d x)}{24 d}+\frac {b \cosh (c+d x) \sinh ^5(c+d x)}{6 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 99, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3299, 2713,
2715, 8} \begin {gather*} \frac {a \cosh ^3(c+d x)}{3 d}-\frac {a \cosh (c+d x)}{d}+\frac {b \sinh ^5(c+d x) \cosh (c+d x)}{6 d}-\frac {5 b \sinh ^3(c+d x) \cosh (c+d x)}{24 d}+\frac {5 b \sinh (c+d x) \cosh (c+d x)}{16 d}-\frac {5 b x}{16} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2713
Rule 2715
Rule 3299
Rubi steps
\begin {align*} \int \sinh ^3(c+d x) \left (a+b \sinh ^3(c+d x)\right ) \, dx &=i \int \left (-i a \sinh ^3(c+d x)-i b \sinh ^6(c+d x)\right ) \, dx\\ &=a \int \sinh ^3(c+d x) \, dx+b \int \sinh ^6(c+d x) \, dx\\ &=\frac {b \cosh (c+d x) \sinh ^5(c+d x)}{6 d}-\frac {1}{6} (5 b) \int \sinh ^4(c+d x) \, dx-\frac {a \text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {a \cosh (c+d x)}{d}+\frac {a \cosh ^3(c+d x)}{3 d}-\frac {5 b \cosh (c+d x) \sinh ^3(c+d x)}{24 d}+\frac {b \cosh (c+d x) \sinh ^5(c+d x)}{6 d}+\frac {1}{8} (5 b) \int \sinh ^2(c+d x) \, dx\\ &=-\frac {a \cosh (c+d x)}{d}+\frac {a \cosh ^3(c+d x)}{3 d}+\frac {5 b \cosh (c+d x) \sinh (c+d x)}{16 d}-\frac {5 b \cosh (c+d x) \sinh ^3(c+d x)}{24 d}+\frac {b \cosh (c+d x) \sinh ^5(c+d x)}{6 d}-\frac {1}{16} (5 b) \int 1 \, dx\\ &=-\frac {5 b x}{16}-\frac {a \cosh (c+d x)}{d}+\frac {a \cosh ^3(c+d x)}{3 d}+\frac {5 b \cosh (c+d x) \sinh (c+d x)}{16 d}-\frac {5 b \cosh (c+d x) \sinh ^3(c+d x)}{24 d}+\frac {b \cosh (c+d x) \sinh ^5(c+d x)}{6 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 66, normalized size = 0.67 \begin {gather*} \frac {-144 a \cosh (c+d x)+16 a \cosh (3 (c+d x))+b (-60 c-60 d x+45 \sinh (2 (c+d x))-9 \sinh (4 (c+d x))+\sinh (6 (c+d x)))}{192 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.31, size = 78, normalized size = 0.79
method | result | size |
default | \(-\frac {5 b x}{16}-\frac {3 a \cosh \left (d x +c \right )}{4 d}+\frac {15 b \sinh \left (2 d x +2 c \right )}{64 d}-\frac {3 b \sinh \left (4 d x +4 c \right )}{64 d}+\frac {b \sinh \left (6 d x +6 c \right )}{192 d}+\frac {a \cosh \left (3 d x +3 c \right )}{12 d}\) | \(78\) |
risch | \(-\frac {5 b x}{16}+\frac {b \,{\mathrm e}^{6 d x +6 c}}{384 d}-\frac {3 b \,{\mathrm e}^{4 d x +4 c}}{128 d}+\frac {a \,{\mathrm e}^{3 d x +3 c}}{24 d}+\frac {15 b \,{\mathrm e}^{2 d x +2 c}}{128 d}-\frac {3 a \,{\mathrm e}^{d x +c}}{8 d}-\frac {3 a \,{\mathrm e}^{-d x -c}}{8 d}-\frac {15 b \,{\mathrm e}^{-2 d x -2 c}}{128 d}+\frac {a \,{\mathrm e}^{-3 d x -3 c}}{24 d}+\frac {3 b \,{\mathrm e}^{-4 d x -4 c}}{128 d}-\frac {b \,{\mathrm e}^{-6 d x -6 c}}{384 d}\) | \(153\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 143, normalized size = 1.44 \begin {gather*} -\frac {1}{384} \, b {\left (\frac {{\left (9 \, e^{\left (-2 \, d x - 2 \, c\right )} - 45 \, e^{\left (-4 \, d x - 4 \, c\right )} - 1\right )} e^{\left (6 \, d x + 6 \, c\right )}}{d} + \frac {120 \, {\left (d x + c\right )}}{d} + \frac {45 \, e^{\left (-2 \, d x - 2 \, c\right )} - 9 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )}}{d}\right )} + \frac {1}{24} \, a {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} + \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.43, size = 135, normalized size = 1.36 \begin {gather*} \frac {3 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{5} + 8 \, a \cosh \left (d x + c\right )^{3} + 24 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + 2 \, {\left (5 \, b \cosh \left (d x + c\right )^{3} - 9 \, b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} - 30 \, b d x - 72 \, a \cosh \left (d x + c\right ) + 3 \, {\left (b \cosh \left (d x + c\right )^{5} - 6 \, b \cosh \left (d x + c\right )^{3} + 15 \, b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{96 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 194 vs.
\(2 (92) = 184\).
time = 0.44, size = 194, normalized size = 1.96 \begin {gather*} \begin {cases} \frac {a \sinh ^{2}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{d} - \frac {2 a \cosh ^{3}{\left (c + d x \right )}}{3 d} + \frac {5 b x \sinh ^{6}{\left (c + d x \right )}}{16} - \frac {15 b x \sinh ^{4}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{16} + \frac {15 b x \sinh ^{2}{\left (c + d x \right )} \cosh ^{4}{\left (c + d x \right )}}{16} - \frac {5 b x \cosh ^{6}{\left (c + d x \right )}}{16} + \frac {11 b \sinh ^{5}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{16 d} - \frac {5 b \sinh ^{3}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{6 d} + \frac {5 b \sinh {\left (c + d x \right )} \cosh ^{5}{\left (c + d x \right )}}{16 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh ^{3}{\left (c \right )}\right ) \sinh ^{3}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 152, normalized size = 1.54 \begin {gather*} -\frac {5}{16} \, b x + \frac {b e^{\left (6 \, d x + 6 \, c\right )}}{384 \, d} - \frac {3 \, b e^{\left (4 \, d x + 4 \, c\right )}}{128 \, d} + \frac {a e^{\left (3 \, d x + 3 \, c\right )}}{24 \, d} + \frac {15 \, b e^{\left (2 \, d x + 2 \, c\right )}}{128 \, d} - \frac {3 \, a e^{\left (d x + c\right )}}{8 \, d} - \frac {3 \, a e^{\left (-d x - c\right )}}{8 \, d} - \frac {15 \, b e^{\left (-2 \, d x - 2 \, c\right )}}{128 \, d} + \frac {a e^{\left (-3 \, d x - 3 \, c\right )}}{24 \, d} + \frac {3 \, b e^{\left (-4 \, d x - 4 \, c\right )}}{128 \, d} - \frac {b e^{\left (-6 \, d x - 6 \, c\right )}}{384 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.45, size = 67, normalized size = 0.68 \begin {gather*} \frac {\frac {a\,\mathrm {cosh}\left (3\,c+3\,d\,x\right )}{12}-\frac {3\,a\,\mathrm {cosh}\left (c+d\,x\right )}{4}+\frac {15\,b\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )}{64}-\frac {3\,b\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )}{64}+\frac {b\,\mathrm {sinh}\left (6\,c+6\,d\,x\right )}{192}}{d}-\frac {5\,b\,x}{16} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________